import { IR } from "@/types/response";
import { IEvent } from "@/types/user";
import { request } from "@/utils/request";
const prefix = "/event"
/**
 * 最近事件
 */
export function recentEventApi(): Promise<IR<IEvent[]>> {
  return request(prefix + "/recent", "GET", {
    "authorize": true,
  })
}
/**
 * 全部事件
 */
export function allEventApi(): Promise<IR<IEvent[]>> {
  return request(prefix + "/all", "GET", {
    "authorize": true,
  })
}